home *** CD-ROM | disk | FTP | other *** search
- 'output from file
- open "i", 1, "steve.txt" 'open needed file
- do while eof(1) = 0 'do till file empty
- input #1, a$ 'get a line
-
- long=LEN(a$) 'get line length
- b$ = "," 'comma to search for
- comma = INSTR(a$, b$) 'place of comma
- t=1 'start of line
- c$=MID$(a$, t, comma-1) 'get needed stuff
- d$=MID$(a$, comma+1, long) 'get rest of line
-
- long=LEN(d$) 'length of rest of line
- comma = INSTR(d$, b$) 'next comma
- e$=MID$(d$, t, comma-1) 'next needed stuff
- f$=MID$(d$, comma+1, long) 'rest of line
-
- long=LEN(f$) 'length of whats left
- comma = INSTR(f$, b$) 'last comma place
- g$=MID$(f$, t, comma-1) 'next to last stuff
- h$=MID$(f$, comma+1, long) 'get last stuff
-
- z1=VAL(e$) 'make string a number
- z2=VAL(g$) 'make string a number
- z3=VAL(h$) 'make string a number
- print c$ 'output string with pause
- anykey
- print z1 'output number with pause
- anykey
- print z2 'output number with pause
- anykey
- print z3 'output number with pause
- anykey
- loop 'do again till end of file
-